<script setup lang="tsx">
import { Error } from '@/components/Error'
import { useRouter } from 'vue-router'

const { push } = useRouter()

function errorClick() {
  push('/')
}
</script>

<template>
  <Error @error-click="errorClick" />
</template>
